import React, { Component } from "react";
import { Switch,Route,Redirect} from 'react-router-dom'



import { Layout, Breadcrumb } from 'antd';


// const { SubMenu } = Menu;
const {  Content,  } = Layout;



export default class MyContent extends Component {
    render() {
        return (
            

        <Layout style={{ padding: '0 24px 24px' }}>
            <Breadcrumb style={{ margin: '16px 0' }}>
            <Breadcrumb.Item>首页</Breadcrumb.Item>
            {/* <Breadcrumb.Item>List</Breadcrumb.Item>
            <Breadcrumb.Item>App</Breadcrumb.Item> */}
            </Breadcrumb>
            <Content
                className="site-layout-background"
                style={{
                    padding: 24,
                    margin: 0,
                    minHeight: 280,
                }}
                >
            <Switch>
                
                {/* <Redirect from='/nav' exact to='/nav/home' />
                <Route path='/nav/home' component={ React.lazy(()=>import('../pages/Home'))} />
                <Route path='/nav/accountList' component={ React.lazy(()=>import('../pages/Account/AccountListFunctionnal'))} />
                <Route path='/nav/accountAdd' component={ React.lazy(()=>import('../pages/Account/AccountAdd'))} />
                <Route path='/nav/personageCenter' component={ React.lazy(()=>import('../pages/Personage/PersonageCenter'))} />
                <Route path='/nav/quit' component={ React.lazy(()=>import('../pages/Personage/Quit'))} />
                <Route path='/nav/order' component={ React.lazy(()=>import('../pages/Order/Order'))} />
                <Route path='/nav/shopList' component={ React.lazy(()=>import('../pages/Shops/ShopListFunctionnal'))} />
                <Route path='/nav/shopAdd' component={ React.lazy(()=>import('../pages/Shops/ShopAdd'))} />
                <Route path='/nav/commodityAdd' component={ React.lazy(()=>import('../pages/Commodity/CommodityAdd'))} />
                <Route path='/nav/commodityList' component={ React.lazy(()=>import('../pages/Commodity/CommodityList'))} />
                <Route path='/nav/orderStatistics' component={ React.lazy(()=>import('../pages/Statistics/OrderStatistics'))} />
                <Route path='/nav/commodityStatistics' component={ React.lazy(()=>import('../pages/Statistics/CommodityStatistics'))} /> */}


              

            </Switch>
        </Content>
        </Layout>
            
            

        )
    }
}
